package com.net.service;

import java.util.List;

import com.net.model.Commodity;
import com.net.model.Provider;

public interface ProviderService {

	public abstract void add(Provider u) throws Exception;

	public abstract List<Provider> getProviders() throws Exception;
	
	public Provider loadProviderById(int id);
	
	public boolean delete(Provider u);
	
	public void update(Provider provider);
	
	public List<Provider> searchList(String param1, String param2, String param3);
	
	public int getCount();
	
	public Provider loadProviderByName(String name) throws Exception;
	
	public List<Provider> getProviders(final int currentPage,final int perPage,final String orderType,final String orderName);
	/**
	 * 条件查询列表
	 * @param currentPage
	 * @param perPage
	 * @param condition查询条件
	 * @return
	 */
	public List<Provider> getProvidersByCondition(final int currentPage,final int perPage,final String condition);
}